package easymall.pojo;


public class MyPage {
	private Integer skip; //自动计算，根据当前页面和页面大小计算
	private Integer page; //当前页面
	public static final Integer size = 8; //页面大小
	private Integer totalPage; //总页数
	
	
	public MyPage(int page){
		setPage(page);
	}
	
	
	public Integer getPage() {
		return page;
	}
	public void setPage(Integer page) {
		this.skip = size*(page-1);
		this.page = page;
	}

	public Integer getSkip() {
		return skip;
	}
	public Integer getTotalPage() {
		return totalPage;
	}
	public void setTotalPage(Integer totalPage) {
		this.totalPage = totalPage;
	}
	
	public Integer getSize() {
		return size;
	}
	
}
